import request from '/@/utils/request';
// 查询分类管理列表

export function flowPublish(data:Object) {
    return request({
        url: '/workflow/publish/'+data,
        method: 'post',
    })
}
export function flowTodo(code:string,id:number,taskid:number=0,data:any) {
    return request({
        url: `/workflow/todo/${code}/${id}/${taskid}`,
        method: 'post',
        data:data
    })
}
export function getWorkFlowData(code:string,id:number) {
    return request({
        url: `/workflow/info/${code}/${id}`,
        method: 'get',
    })
}
export function getWorkFlowUsers() {
    return request({
        url: `/workflow/users`,
        method: 'get',
    })
}
export function saveWorkFlows(code:string,data :any) {
    return request({
        url: `/workflows/edit/`+code,
        method: 'post',
        data:data
    })
}
export function getWorkFlows(code:string,) {
    return request({
        url: `/workflows/info/`+code,
        method: 'get',
    })
}
export function publishWorkFlows(code:string,) {
    return request({
        url: `/workflows/publish/`+code,
        method: 'post',
    })
}